Stable Diffusion生成艺术二维码

这是一个二维码,不信你扫一下


Stable Diffusion生成艺术二维码


首先需要一个Stable Diffusion服务环境,《Stable Diffusion服务环境搭建(远程服务版)》(https://zhuanlan.zhihu.com/p/644911677)如果你已经有了那就忽略


01

准备一个比较好的二维码底图

首先需要解析二维码链接,这里用草料二维码来实现

链接

https://cli.im/

这里点击解码,来生成二维码链接,接着上传二维码图片,复制二维码


Stable Diffusion生成艺术二维码


Stable Diffusion生成艺术二维码


Stable Diffusion生成艺术二维码


改为一个好看的二维码底图,二维码底图也决定了二维码的美观

插件地址:https://github.com/antfu/sd-webui-qrcode-toolkit.git

安装教程:将上面的插件地址放入扩展仓库地址安装就好了,安装成功之后页面会多出一个这个如下图:

Stable Diffusion生成艺术二维码


打开之后是这样的:

Stable Diffusion生成艺术二维码


这个也有在线地址https://qrcode.antfu.me/这是他自己的网站,不过安东尼大佬已经把这个整合到了sd,直接用就好,这个插件现在做的码已经非常强,特别适合我们进行二次创作

下面讲解一下这个插件的用法:

  • Error Correction:二维码的容错率(二维码容错率越高,信息点越多,制作出来的二维码越容易扫描),L指7%,M指15%,Q指25%,H指30%。容错率太低了就基本扫不出来所以建议使用Q挡

  • Mask Pattern:就是改样子,修改码的分布

  • Rotate:旋转,建议旋转180

  • Pixel:液化,也是修改样子 修改码里面的

  • Marker:修改定位点的样式

  • Marker Shape:修改最外层的样式,这个的话越不容易察觉到那个圈,出来的图效果就越好

  • Inner Marker:点的形状

  • Invert:反转黑白,可以自己试试那种效果好

  • Margin:对二维码进行扩展

这是我使用的:可以参考

Stable Diffusion生成艺术二维码


然后下载二维码就好了Download

二、下载模型

https://civitai.com/models/4468?modelVersionId=57618

(需要科学上网)

Stable Diffusion生成艺术二维码


下载后上传到阿里云盘上操作。《Stable Diffusion服务环境搭建(远程服务版)》


03

参数设置

基础参数


Stable Diffusion生成艺术二维码


ADetailer

如果你做人像的话可以使用sd插件ADetailer: 用于脸部,手部修复等,不需要的话忽略此步骤,新手建议先不使用

插件安装:扩展直接搜索ADetailer

Stable Diffusion生成艺术二维码


下载安装即可

或者:使用从网址安装即可 链接https://github.com/Bing-su/adetailer.git


Stable Diffusion生成艺术二维码


Stable Diffusion生成艺术二维码


ControlNet

下载模型:QR Code Monster

模型下载:https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster/tree/main

Stable Diffusion生成艺术二维码


这个yaml也要下哈

Stable Diffusion生成艺术二维码


导入模型请参考吴东子ControlNet的教程可以看这篇文章: 目《ControlNet终极攻略》(https://ry5hwpuf7b.feishu.cn/docx/NeqIdWC9PovqQ6xruAJcErqHnxc)

Stable Diffusion生成艺术二维码


04

生成

设置完成后点击生成就可以了


Stable Diffusion生成艺术二维码


05

一些Prompt和做的图

这个分享出来,希望大家多多尝试,各种模型,尝试起来,找到更好的模型,做出更棒的图。


01

可爱女孩

Prompt

1girl,solo,long hair,messy hair,colorful hair,yellow off shoulder,hair flower,greenery,flower,(Masterpiece, bestquality),4k

Negative Prompt

bad-hands-5, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)), bad proportions, render, 3d, 2d, sketch, painting, digital art, drawing, (deformed, distorted, disfigured:1.3), poorly drawn, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad art, low details, incomplete, undetailed, fused body parts, poorly drawn face, out of focus, smudgy, glossy, glitchy, bad human anatomy, more than two legs

模型:CounterfeitV30

(https://civitai.com/models/4468)

模型的VAE/SD VAE

vae-ft-mse-840000-ema-pruned.safetensors


Stable Diffusion生成艺术二维码


Stable Diffusion生成艺术二维码


02

最喜欢的一组Prompt

可以在各种模型上使用

Prompt

1girl, wedding dress, solo,full body, from side, (white ribbon:1.3), (dark background:1.3),4k

Negative Prompt

bad-hands-5, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)), bad proportions, render, 3d, 2d, sketch, painting, digital art, drawing, (deformed, distorted, disfigured:1.3), poorly drawn, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad art, low details, incomplete, undetailed, fused body parts, poorly drawn face, out of focus, smudgy, glossy, glitchy, bad human anatomy, more than two legs

模型:GhostMix

(https://civitai.com/models/36520?modelVersionId=76907)

模型的VAE/SD VAE

vae-ft-mse-840000-ema-pruned.safetensors


Stable Diffusion生成艺术二维码


03

这个色调真的喜欢

Prompt

1girl, cloud, sky, water, ocean, cloudy sky, blue eyes, blue sky, beautiful hair,4k

Negative Prompt

bad-hands-5, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale)), bad proportions, render, 3d, 2d, sketch, painting, digital art, drawing, (deformed, distorted, disfigured:1.3), poorly drawn, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad art, low details, incomplete, undetailed, fused body parts, poorly drawn face, out of focus, smudgy, glossy, glitchy, bad human anatomy, more than two legs


模型:CounterfeitV30

(https://civitai.com/models/4468)

模型的VAE/SD VAE

vae-ft-mse-840000-ema-pruned.safetensors


Stable Diffusion生成艺术二维码


Stable Diffusion生成艺术二维码


往期推荐

1

Stable Diffusion服务环境搭建(远程服务版)

2

无需安装SD,QuickQR.Art艺术二维码保姆级教程!

3

Chat-GPT 聚合平台 Poe:集成多个 AI 聊天机器人

4

如何利用ChatPDF快速阅读英文论文,帮你写文章


点击蓝字丨关注我们


返回:Stable Diffusion生成艺术二维码

本文由“公众号文章抓取器”生成,请忽略上文所有联系方式或指引式信息。有问题可以联系:五人工作室,官网:www.Wuren.Work,QQ微信同号1976.424.585